package com.minxi.web.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "jspUpdateServlet",urlPatterns = "/jspUpdate")
public class JspUpdateServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.setCharacterEncoding("utf-8");
        //1.获取修改按钮传过来的 id值
        String id = req.getParameter("id");
        //2.通过使用id值去数据库查询

        //3.把数据封装成 UserInfo对象

        //4.把封装好的数据放到session回话域中,以便于页面上可以获取到

    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

    }
}
